summaryrefslogtreecommitdiff
path: root/app/api/auth/[...nextauth]
diff options
context:
space:
mode:
Diffstat (limited to 'app/api/auth/[...nextauth]')
-rw-r--r--app/api/auth/[...nextauth]/saml/provider.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/api/auth/[...nextauth]/saml/provider.ts b/app/api/auth/[...nextauth]/saml/provider.ts
index 8486a690..dfe3d830 100644
--- a/app/api/auth/[...nextauth]/saml/provider.ts
+++ b/app/api/auth/[...nextauth]/saml/provider.ts
@@ -228,6 +228,7 @@ export async function authenticateSAMLUser(userData: SAMLUser) {
}
}
+// TODO: SecuritySetting 함수에서 가져올 것
// NextAuth JWT 토큰 생성 헬퍼
export async function createNextAuthToken(user: User): Promise<string> {
const token = {
@@ -239,7 +240,7 @@ export async function createNextAuthToken(user: User): Promise<string> {
domain: user.domain,
imageUrl: user.imageUrl,
iat: Math.floor(Date.now() / 1000),
- exp: Math.floor(Date.now() / 1000) + (30 * 24 * 60 * 60) // 30일
+ exp: Math.floor(Date.now() / 1000) + (480 * 60) // 480분
};
const secret = process.env.NEXTAUTH_SECRET!;
@@ -256,4 +257,3 @@ export function getSessionCookieName(): string {
? '__Secure-next-auth.session-token'
: 'next-auth.session-token';
}
- \ No newline at end of file